package com.yswee.mallnavi.view.intro;

import android.content.Context;
import android.util.AttributeSet;

import com.yswee.framework.utils.ViewInject;
import com.yswee.framework.widget.base.WebView;
import com.yswee.framework.widget.layoutview.MRelativeLayout;
import com.yswee.mallnavi.R;
import com.yswee.mallnavi.entity.info.InfoEntity;


/***
 */
public class ItemView extends MRelativeLayout<InfoEntity> {

    @ViewInject
    private WebView uvwebview;

    public ItemView(Context context) {
        super(context);
    }

    public ItemView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected int getLayoutResId() {
        return R.layout.view_info_intro_itemview;
    }

    @Override
    protected void onBindListener() {
        super.onBindListener();
    }

    @Override
    protected void onApplyData() {
        String htmlContent = mDataItem.getDescription();
        uvwebview.setVerticalScrollBarEnabled(false);
        uvwebview.setScrollbarFadingEnabled(false);
        uvwebview.loadData(htmlContent, "text/html", "UTF-8");
    }

}